{
 "metadata": {
  "name": "",
  "signature": "sha256:eefdde6b795c9c3d8ce83b93b6e3e28c0235ad5c82f1927e7ab5087dbc73e6f9"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import pandas as pd"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 2
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "sp500_companies = pd.DataFrame.from_csv(\"../twitter/firms.csv\", index_col=0)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 3
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "sp500_companies[\"Symbols\"]= sp500_companies.index\n",
      "sp500_companies[\"Search\"]= sp500_companies.index+\",\"+sp500_companies[\"Keywords\"]\n",
      "print (sp500_companies[\"Search\"])"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Symbol\n",
        "MMM                           MMM,3M co\n",
        "ABT             ABT,Abbott Laboratories\n",
        "ABBV                    ABBV,AbbVie inc\n",
        "ACN                       ACN,Accenture\n",
        "ACE                     ACE,ACE Limited\n",
        "ACT                     ACT,Actavis inc\n",
        "ADBE                     ADBE,Adobe inc\n",
        "AES                        AES,Aes Corp\n",
        "AET                       AET,Aetna inc\n",
        "AFL                       AFL,Aflac inc\n",
        "A                         A,Agilent inc\n",
        "GAS                         GAS,AGL inc\n",
        "APD       APD,air producs chemicals inc\n",
        "ARG                      ARG,airgas inc\n",
        "AKAM                    AKAM,akamai inc\n",
        "...\n",
        "WFM             WFM,whole foods inc\n",
        "WIN             WIN,windstream corp\n",
        "WEC       WEC,wisconsin energy corp\n",
        "WYN                WYN,wyndham corp\n",
        "WYNN          WYNN,wynn resorst ltd\n",
        "XEL             XEL,xcel energy inc\n",
        "XRX                  XRX,xerox corp\n",
        "XLNX                XLNX,xilinx inc\n",
        "XL                  XL,xl group plc\n",
        "XYL                   XYL,xylem inc\n",
        "YHOO                 YHOO,yahoo inc\n",
        "YUM                     YUM,yum inc\n",
        "ZMH         ZMH,zimmer holdings inc\n",
        "ZION             ZION,zions bancorp\n",
        "ZTS                  ZTS,zoetis inc\n",
        "Name: Search, Length: 501, dtype: object\n"
       ]
      }
     ],
     "prompt_number": 51
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "print (sp500_companies.columns)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Index(['Name', 'Sector', 'Keywords', 'Symbols'], dtype='object')\n"
       ]
      }
     ],
     "prompt_number": 45
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}